Hello, I was learning about the identifier function and came across an observation. Please see the scenarios below: In this first scenario I searched for the word "hi" and it appears only once in 1 object with an ID entitled "alpha_1" Object o print identifier(o) This would print "alpha_1"
However, lets say I do a search for the word "hello" . This time however, this word appears in objects "alpha_4" and "alpha_5" if I do this: Object o print identifier(o) This would print "alpha_4alpha_5" If you notice the second example, it does identify both positions in which the word is found, however, it appends that result as one single string. Does anyone know how I could split this apart so that it would identify this as 2 seperate results instead of just 1 big concatenation? For example, I would want it to state "alpha_4" "alpha_5" Thanks. learner007 - Fri Aug 16 11:31:01 EDT 2013 |
Re: the identifier function Generally end your print statements with an EOL:
This has nothing to do with the "identifier()" function. -Louie |